home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / asm / mtype.com / MTYPE.DOC < prev    next >
Encoding:
Text File  |  1989-01-15  |  683 b   |  14 lines

  1. MTYPE.EXE is a small program to test for the presence of an EGA/VGA adapter and
  2. also tells whether it is color/monochrome.
  3.  
  4. The easiest test for the presence of an EGA is to check the C000:0000h ROM 
  5. latch, but this is not available on the PS/2 and should be avoided.
  6.  
  7. Better methods are to use EGA/VGA only functions. BIOS call 1ah returns the
  8. active adapter type. If BIOS call 1ah is not supported, BX will remain 0.
  9.  
  10. If 1ah is not supported, use function call 12h (unique to EGA) to get
  11. information about the EGA. BL must be set to 10h to return EGA information.
  12. If an EGA is installed, a value between0 and 3 will represent memory, otherwise
  13. a 10h will be returned.
  14.